namespace SubSonic
{
    using SubSonic.Utilities;
    using System;

    public static class FileExtension
    {
        public const string ASPX = "aspx";
        public const string CS = "cs";
        public const string DOT_ASPX = ".aspx";
        public const string DOT_CS = ".cs";
        public const string DOT_VB = ".vb";
        public const string VB = "vb";
        public const string VB_DOT_NET = "vb.net";

        public static bool IsCSharp(string fileExtension)
        {
            if (!Utility.IsMatch(fileExtension, ".cs"))
            {
                return Utility.IsMatch(fileExtension, "cs");
            }
            return true;
        }

        public static bool IsVB(string fileExtension)
        {
            if (!Utility.IsMatch(fileExtension, ".vb") && !Utility.IsMatch(fileExtension, "vb"))
            {
                return Utility.IsMatch(fileExtension, "vb.net");
            }
            return true;
        }
    }
}

